
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>登录</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/login.css">
    <script src="${pageContext.request.contextPath}/js/login.js"></script>
</head>
<body style="margin: 0;">
<div id="homepage">
    <P>当前在线人数：${applicationScope.count} 人</P>
    <!--logo设置-->
    <div class="logo"></div>
    <!--登录框-->
    <div id="masage">
        <%--<div id="idlogin">账号密码登录</div>--%>
        <div id="phonelogin">手机验证码登录</div>
        <div id="phonemasage">
            <form action="${pageContext.request.contextPath}/userRegisterAndLogin?methodName=phoneLogin" method="post" id="form2">
                <ul class="phonecontext">
                    <li class="phoneline">
                        <p>手机号：</p>
                        <input type="text" name="phone" placeholder="请输入11位手机号">
                    </li>
                    <li class="codeline">
                        <p>验证码：</p>
                        <input type="text" name="veriCode" placeholder="请输入验证码">
                        <input type="button" value="发送验证码" name="btn02" id="btn02">
                    </li>
                </ul>
                <input type="button" value="登   录" name="btn03" id="btn03">
                <a href="${pageContext.request.contextPath}/jsp/register.jsp"><input type="button" value="注   册" class="register2"></a>
            </form>
        </div>
    </div>
</div>


<script>
    <c:if test="${sessionScope.loginaccount!=null && sessionScope.loginpwd!=null}">
    window.location.href = "${pageContext.request.contextPath}/userAccountLogin?account=${sessionScope.loginaccount}&pwd=${sessionScope.loginpwd}";
    </c:if>
</script>
</body>
</html>
